<input type="text" id="<?php echo $this->fieldId;  ?>" class="input inp_autourl" name="<?=$this->fieldName;?>" value="<?=htmlspecialchars($this->data);?>">
<?php
if ($this->params['source'])
{
?>
<script type="text/javascript">
$(document).ready(function(){
	$('#<?php echo $this->params['source']; ?>').focus(function(){
		var articleUrl = $('#<?php echo $this->fieldId;  ?>');
		if (articleUrl && (articleUrl.val() == ''))
		{
			$(this).syncTranslit({destination: '<?php echo $this->fieldId;  ?>'});
		}
		else
		{
			$(this).unbind('keyup');
		}
	});
});
</script>
<?php
}
?>